import request from "@/utils/request";
// 请假记录
export function getleave(pageNum, pageSize) {
  return request({
    url: `/system/record/list?pageNum=${pageNum}&pageSize=${pageSize}`,
    method: "get",
  });
}
// 申请请假
export function setleave(data) {
  return request({
    url: "/system/record/apply",
    method: "post",
    data: data,
  });
}
// 续假
export function updataleave(data) {
  return request({
    url: "/system/record/extend",
    method: "put",
    data: data.id,
  });
}
// 销假
export function putcancel(data) {
  return request({
    url: "/system/record/return",
    method: "put",
    data: data.id,
  });
}
